package com.itheima.domain;

/**
 * 学生对象
 */
public class Student {

        private Integer sid;
        private String name;
        private Integer age;

        // 学生属于某个班级
        private Classes classes;

        public Integer getSid() {
                return sid;
        }

        public void setSid(Integer sid) {
                this.sid = sid;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public Integer getAge() {
                return age;
        }

        public void setAge(Integer age) {
                this.age = age;
        }

        public Classes getClasses() {
                return classes;
        }

        public void setClasses(Classes classes) {
                this.classes = classes;
        }

        @Override
        public String toString() {
                return "Student{" +
                        "sid=" + sid +
                        ", name='" + name + '\'' +
                        ", age=" + age +
                        ", classes=" + classes +
                        '}';
        }
}
